package cn.zhiran.user.service.impl;

import cn.zhiran.basic.service.impl.BaseServiceImpl;

import cn.zhiran.user.domain.User;
import cn.zhiran.user.mapper.UserMapper;
import cn.zhiran.user.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service

public class UserServiceImpl extends BaseServiceImpl<User> implements IUserService {
    @Autowired
    private UserMapper userMapper;



    @Transactional
    @Override
    public void update(User user) {
        userMapper.update(user);
    }

    @Transactional
    @Override
    public void insert(User user) {

        userMapper.insert(user);
    }




}
